package Sorts;

public class Novels extends Books {
    private  String author;
    private String introduction;
    private String mainRole;

    public  Novels(String name,int pages,int degree,int sort,String author, String introduction, String mainRole) {
        super(name,pages,degree,sort);
        this.author = author;
        this.introduction = introduction;
        this.mainRole = mainRole;
    }

    public String getAuthor() {
        return author;
    }
    public void setAuthor(String author) {
        this.author = author;
    }

    public String getIntroduction() {
        return introduction;
    }
    public void setIntroduction(String introduction) {
        this.introduction = introduction;
    }

    public String getMainRole() {
        return mainRole;
    }
    public void setMainRole(String mainRole) {
        this.mainRole = mainRole;
    }

    @Override
    public String toString() {
        return super.toString() + "作者是：" + author + ",简介：" + introduction + ",主角是：" + mainRole;
    }
}
